package com.edu.lwh.pojo;

import com.edu.lwh.javabean.HotelDoc;
import lombok.Data;

import java.util.Collections;
import java.util.List;

@Data
public class PageResult {
    private Long total;
    private List<HotelDoc> hotels;

    public PageResult() {
        this.total = 0L;
        this.hotels = Collections.emptyList();
    }

    public PageResult(Long total, List<HotelDoc> hotels) {
        this.total = total;
        this.hotels = hotels;
    }
}